<div>

    <div class="ibox ">
        <div class="ibox-title">
            <h5>查询条件</h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
                    v-on:click="_moreCondition()">
                    {{housekeepingServPoolManageInfo.moreCondition == true?'隐藏':'更多'}}
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-3">
                    <div class="form-group">
                        <input type="text" placeholder="请输入服务名称"
                            v-model="housekeepingServPoolManageInfo.conditions.servName" class=" form-control">
                    </div>
                </div>
                <div class="col-sm-4">
                    <div class="form-group">
                        <select class="custom-select" v-model="housekeepingServPoolManageInfo.conditions.state">
                            <option selected disabled value="">请选择维修状态</option>
                            <option v-for="(item,index) in housekeepingServPoolManageInfo.states"
                                :value="item.statusCd">
                                {{item.name}}
                            </option>
                        </select>
                    </div>
                </div>
                <div class="col-sm-3">
                    <div class="form-group">
                        <input type="text" placeholder="请输入申请人"
                            v-model="housekeepingServPoolManageInfo.conditions.applyName" class=" form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <button type="button" class="btn btn-primary btn-sm"
                        v-on:click="_queryHousekeepingServPoolMethod()">
                        <i class="fa fa-search"></i> 查询
                    </button>
                    <button type="button" class="btn btn-primary btn-sm"
                        v-on:click="_resetHousekeepingServPoolMethod()">
                        <i class="fa fa-repeat"></i> 重置
                    </button>
                </div>
            </div>
            <div class="row" v-if="housekeepingServPoolManageInfo.moreCondition == true">
                <div class="col-sm-3">
                    <div class="form-group">
                        <input type="text" placeholder="请输入联系电话"
                            v-model="housekeepingServPoolManageInfo.conditions.applyTel" class=" form-control">
                    </div>
                </div>
            </div>

        </div>
    </div>

    <div class="ibox">
        <div class="ibox-title">
            <h5>服务工单池</h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddTelSerModal()">
                    <i class="fa fa-plus"></i>服务登记
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                <thead>
                    <tr>
                        <th class="text-center">服务名称</th>
                        <th class="text-center">订单编号</th>
                        <th class="text-center">申请人</th>
                        <th class="text-center">联系方式</th>
                        <th class="text-center">预约时间</th>
                        <th class="text-center">申请时间</th>
                        <th class="text-center">状态</th>
                        <th class="text-center">备注</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="housekeepingServPool in housekeepingServPoolManageInfo.housekeepingServPools">
                        <td class="text-center">{{housekeepingServPool.servName}}</td>
                        <td class="text-center">
                            {{housekeepingServPool.cartId == '-1'?'电话预约':housekeepingServPool.cartId}}
                        </td>
                        <td class="text-center">{{housekeepingServPool.applyName}}</td>
                        <td class="text-center">{{housekeepingServPool.applyTel}}</td>
                        <td class="text-center">{{housekeepingServPool.appointmentTime}}</td>
                        <td class="text-center">{{housekeepingServPool.createTime}}</td>
                        <td class="text-center">{{housekeepingServPool.stateName}}</td>
                        <td class="text-center">{{housekeepingServPool.context}}</td>
                        <td class="text-center">
                            <div class="btn-group"
                                v-if="housekeepingServPool.state == '1000' && housekeepingServPool.repairWay == '200'">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openDispatchHousekeepingModel(housekeepingServPool)">指派
                                </button>
                            </div>
                            <!-- <div class="btn-group" v-if="housekeepingServPool.state == '1000' && housekeepingServPool.repairWay == '100'">
                                    <button class="btn-white btn btn-xs"
                                        v-on:click="_openAddHousekeepingServPoolUserModal(housekeepingServPool)">抢单</button>
                                </div>
                                <div class="btn-group" v-if="housekeepingServPool.state == '1100' && housekeepingServPool.repairWay == '100'">
                                    <button class="btn-white btn btn-xs"
                                        v-on:click="_openReleaseHousekeepingServPoolUserModal(housekeepingServPool)">释放</button>
                                </div> -->
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs" v-on:click="_openDetail(housekeepingServPool)">详情
                                </button>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <vc:create path="frame/pagination"></vc:create>
        </div>

    </div>
    <vc:create path="goods/addOwnerRepair" callBackListener="" callBackFunction=""></vc:create>
    <!-- <vc:create path="goods/addHousekeepingServPoolUser"></vc:create> -->
    <vc:create path="goods/dispatchHousekeeping"></vc:create>
</div>